<?php
//get URL cua file hien tai;
$baseUrl = $_SERVER['PHP_SELF'];

//kiem tra thong tin request den
if (isset($_POST['getMember']) && $_POST['getMember'] == 'view')
{
	//wating 1s truoc khi thuc thi
	sleep(1);

	//tao mang member
	$member = array(
			'username' => 'Tuấn Anh'
			,'password' => '123456'
			,'email' => 'anh@gmail.com');
	 
	//dung ham json_encode de chuyen mang $member thanh chuoi JSON
	echo json_encode($member);
	 
	//ket thuc tra ve du lieu va stop khong cho chay tiep
	die;
}
?>